const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 建立token的快捷访问
  name: state => state.user.UserInfo.username, // 建立用户名的快捷访问
  userId: state => state.user.UserInfo.userId, // 建立用户id的快捷访问
  photo: state => state.user.UserInfo.staffPhoto, // 建立头像的快捷访问
  companyId: state => state.user.UserInfo.companyId, // 建立对于user模块的companyId的快捷访问
  routes: state => state.permission.routes // 导出当前路由
}
export default getters
